//
//  MyCollectionViewCell.m
//  14-UI-Gift
//
//  Created by Snow on 16/8/2.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageview = [[UIImageView alloc] initWithFrame:self.bounds];
        _imageview.image = [UIImage imageNamed:@"u=2278491182,944619444&fm=21&gp=0"];
        _imageview.layer.masksToBounds = YES;
        _imageview.layer.cornerRadius = 5;
        _labelOfTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(frame) / 3, CGRectGetWidth(frame) / 2, CGRectGetHeight(frame) / 3)];
        _labelOfTitle.text = @"礼物";
        _labelOfTitle.font = [UIFont systemFontOfSize:20];
        
        _labelOfCOntent = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(frame) / 3 * 2, CGRectGetWidth(frame), CGRectGetHeight(frame) / 3)];
        _labelOfCOntent.text = @"选礼物就来礼物说~";
        [self addSubview:_imageview];
        [self addSubview:_labelOfTitle];
        [self addSubview:_labelOfCOntent];
    }
    return self;
}
@end
